From: Florian Müllner Date: Tue, 5 Feb 2013 18:06:19 +0000 (+0100) Subject: messageTray: Add 'source-removed' signal X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4962 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7f587fd4dab3bfecde3b6dd901c85b5d2c9df966;p=gnome-shell.git messageTray: Add 'source-removed' signal While it is possible to keep track of removed sources by tracking their summary items' actor:.destroy signal, a dedicated signal mirroring the existing 'source-added' one is more convenient. https://bugzilla.gnome.org/show_bug.cgi?id=693220 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 49faf7ad0..1722861d7 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -1817,6 +1817,8 @@ const MessageTray = new Lang.Class({ summaryItem.destroy(); + this.emit('source-removed', source); + this._updateNoMessagesLabel(); if (needUpdate)